var log4js = require('log4js');
	log4js.loadAppender('file');
	log4js.addAppender(log4js.appenders.file('./system.log'), 'system');// ./system.log
	log4js.addAppender(log4js.appenders.file('./access.log'), 'access');// ./access.log
var logger = log4js.getLogger('system');//'system'
	logger.setLevel('DEBUG');
var acclogger = log4js.getLogger('access');
	acclogger.setLevel('DEBUG');

exports.debug = function(s){
	logger.debug(s);
}

exports.error = function(err){
    logger.error(err.stack);
	logger.error(err);
}

exports.acclog = function(s){
	acclogger.debug(s);
}

